package alarm

import "service_keepalive/config"

var ALARM_INSTANCE Alarmer

type Alarmer interface {
	Alarm(serverName string, address string, status string)
}

func Setup() {
	ALARM_INSTANCE = &DingTalkAlarm{
		AccessToken: config.CONF_INSTANCE.AccessToken,
		Profile:     config.CONF_INSTANCE.Profile,
	}
}
